package com.aididi.service;

import com.aididi.service.impl.FallBackServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Auther: zx.xu
 * @Description:
 */

@FeignClient(name = "nacos-provider",fallback = FallBackServiceImpl.class)
public interface ConsumerFeignService {

    /**
     * 调用生产者接口
     * @param message
     * @return
     */
    @GetMapping(value = "/test/{message}")
    String test(@PathVariable("message") String message);
}
